package com.cskaoyan._13break;

import java.awt.*;

/**
 * @description:
 * @author: 景天
 * @date: 2023/1/29 17:39
 **/

/*
label

label:for(){
    label2:for(){
        label3:for(){
            //break label
        }
    }
}
 */
public class Demo2 {
    public static void main(String[] args) {
        label:for (int i = 0; i < 5; i++) {
            label1:for (int j = 0; j < 5; j++) {
                Label2:for (int k = 0; k < 5; k++) {
                    if (k == 1) {
                        break label;
                    }
                    System.out.println("k = " + k);
                }
                System.out.println("j = " + j);
            }
            System.out.println("i = " + i);
        }
    }
}
